package com.dao;

import com.entity.Student;
import com.page.PageInfo;

import java.util.List;

public interface StudentDao {
    public List<Student> getAll() throws Exception;
    public int addStudent(Student student) throws Exception;
    List<Student> getStudentsByPage(PageInfo pageInfo,String cacheId) throws Exception;
    List<Student> getStudentsByPage(PageInfo pageInfo) throws Exception;
    public List<Student> searchStudentByName(String name,PageInfo pageInfo) throws Exception;
    public Student selectStudentWithScsAndCourse(String sno)throws Exception;
    public Student selectStudentBySno(String sno);
    public int updateStudentByCno(Student student);


    public int  getItemCount(String cacheId);

    public Student loginStudentByName(String name);
}
